package com.itxzh.main;

import com.itxzh.service.StudentService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * desc
 *
 * @author ldt
 * @date 2019/12/25 10:07
 */
public class App {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
        StudentService studentService = ac.getBean("studentService", StudentService.class);
        studentService.add();
    }
}
